<script>

</script>

<div id="question_index">

	<div id="questions_list" class="units">		
		<?php 
		if(!isset($questions_list)) {
			echo "Não existe questões no banco de dados.";
		}
		?>
		<ul>
			<?php 
			foreach($questions_list as $key=>$question):			
			?>
				<li><a href="<?php echo WWW_APP.'questions/visualize/unit/'.$question->unitid.'/question/'.$key?>"><?php echo $question->question?></a></li>
			<?php 	
			endforeach;		
			?>
		</ul>
	
	
		<br class="clear" />
		<br class="clear" />
		
		<div class="links">
			<a href="<?php echo WWW_APP.'questions/add/unit/'.$unitid?>">+ Nova Questão</a>
			<a href="<?php echo WWW_APP.'units/edit/unit/'.$unitid?>">Voltar para edição do OA</a>
		</div>
		
		<br class="clear" />
	</div>
</div>